package com.ssd.api.vendingMachine;


import com.ssd.api.product.dto.SkuEntity;
import com.ssd.api.vendingMachine.dto.ChannelEntity;
import com.ssd.view.BaseResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "vendingMachine-service", url = "http://localhost:9015/vendingMachine-service/inner/channel")
public interface ChannelApi {
    /**
     * 查询指定售货机的信道
     * @param innerCode
     * @return
     */
    @GetMapping("/list/{innerCode}")
    public BaseResponse<List<ChannelEntity>> getListByInnerCode(@PathVariable String innerCode);
}
